package com.ygh.controller;

import com.ygh.pojo.VipLeftMenu;
import com.ygh.service.VipLeftMenuService;
import com.ygh.vo.SysResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@CrossOrigin
@RequestMapping("/vipleft")
public class VipLeftMenuController {
    @Autowired
    private VipLeftMenuService vipLeftMenuService;
    @GetMapping("/getLeftList")
    public SysResult getLeftList(){
       List<VipLeftMenu> vipLeftMenus= vipLeftMenuService.getLeftList();
        return SysResult.success(vipLeftMenus);
    }
}
